package org.jeecg.modules.ncmeapis.data.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("data_temp")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "临时数据", description = "比如临时加个数据0.0")
public class DataTemp {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("类别")
    private String category;

    @ApiModelProperty("键")
    private String name;

    @ApiModelProperty("值")
    private String value;

    @ApiModelProperty("值类型")
    private String type;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableLogic
    private Integer isDeleted;

    @Version
    private Integer version;

}
